//
//  Memento.m
//  备忘录模式
//
//  Created by flannery on 2018/12/19.
//  Copyright © 2018年 flannery. All rights reserved.
//

#import "Memento.h"

@interface Memento ()
@property (nonatomic,strong) NSString * state;
@end
@implementation Memento

-(instancetype)initWithState:(NSString*)state{
    if(self = [super init]) {
        self.state = state;
    }
    return self;
}

-(NSString*)getState{
    return self.state;
}
@end
